/*
* $Id: ChangeInspectOperation.h 60 2010-03-11 16:58:45Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _CHANGE_INSPECT_OPERATION_H_
#define _CHANGE_INSPECT_OPERATION_H_

#include "../Operation.h"

class CChangeInspectOperation : public COperation
{
public:
	CChangeInspectOperation();
	virtual ~CChangeInspectOperation();
public:
	struct inspect{
		int s_nIdHousing;
		int s_nBrood;
		int s_nHoney;
		int s_nOpenBrood;
		int s_nCloseBrood;
		int s_nGoodsHoney;
		inspect(int nIdHousing, int nBrood, int nHoney, int nOpenBrood, int nCloseBrood, int nGoodsHoney)
			: s_nIdHousing(nIdHousing), s_nBrood(nBrood), s_nHoney(nHoney),
			s_nOpenBrood(nOpenBrood), s_nCloseBrood(nCloseBrood), s_nGoodsHoney(nGoodsHoney){}
	};
	struct content : public COperation::content{
		content();
		int s_nId;
		time_t s_date;
		int s_nFrame;
		int s_nStrength;
		int s_nWax;
		int s_beeQueenStatus;
		int s_nAmbrosia;
		int s_nPumpHoney;
		int s_nFeeding;
		int s_disease;
		std::tstring s_strNote;
		std::map<std::tstring, std::tstring> s_aUserFields;
		std::vector<inspect> s_aInspects;
		virtual void Clear();
	}m_content;
public:
	virtual void UpdateValue(IDatabase* pDatabase);
};

#endif/*_CHANGE_INSPECT_OPERATION_H_*/